package com.xinqi.modules.sys.sensitive.word.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 敏感词管理表-请求对象-新增
 *
 * @author: wenjie
 * @date: 2023/08/02
 */
@Data
@Schema(description = "敏感词管理表-请求对象-新增")
public class SensitiveWordCreateDTO implements Serializable {

    /**
     * 敏感词分类
     */
    @Schema(description = "敏感词分类", example = "涉黄")
    @NotEmpty(message = "分类不能为空")
    private String type;
    /**
     * 内容
     */
    @Schema(description = "内容", example = "")
    @NotEmpty(message = "内容不能为空")
    @Size(min = 1, max = 4000, message = "内容长度不能超过4000个字符")
    private String content;
    /**
     * 词汇数量
     */
    @Schema(description = "词汇数量", example = "")
    private Long quantity;
    /**
     * 脱敏状态，0-停用； 1-启用
     */
    @Schema(description = "脱敏状态，0-停用； 1-启用", example = "")
    private Integer status;
    /**
     * 备注
     */
    @Schema(description = "备注", example = "")
    private String remark;
}
